﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace DAL
{
    public class tbl_Detect
    {
        public bool Add(MODEL.tbl_Detect s)
        {
            string strsql = "insert into tbl_Detect(SensorID,Temperature,Humidity,Status)" +
                           "values('{0}','{1}','{2}','{3}')";
            strsql = string.Format(strsql, s.SensorID, s.Temperature, s.Humidity, s.Status);
            return DBUnlity.DBHelpSQL.ExeSql(strsql);
        }
    }
}
